package com.dragon.modules.yuegou.query.system;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.dragon.modules.yuegou.entity.system.MenuEntity;
import com.dragon.modules.yuegou.enums.OwnerType;
import com.dragon.modules.yuegou.enums.YsqAppType;
import com.dragon.modules.yuegou.enums.system.MenuExpandStatus;
import com.dragon.modules.yuegou.enums.system.MenuMark;
import com.dragon.modules.yuegou.enums.system.MenuStatus;
import com.dragon.modules.yuegou.mybatis.Condition;
import com.dragon.modules.yuegou.mybatis.Query;
import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.JsonInclude.Include;
import com.fasterxml.jackson.annotation.JsonUnwrapped;

import java.time.LocalDateTime;

/**
 * 菜单表 动态查询条件
 * 
 * @author pbuilder generated
 * @date 2019-08-21 17:34:57
 * @version 2.0
 */
@JsonInclude(Include.NON_NULL)
public class MenuQuery extends MenuEntity implements Query<MenuEntity> {

    /** 编号查询条件 */
	@JsonUnwrapped(prefix = "id")
	private Condition<String> idCondition;

    /** 菜单名称查询条件 */
	@JsonUnwrapped(prefix = "name")
	private Condition<String> nameCondition;

    /** 上级菜单编号查询条件 */
	@JsonUnwrapped(prefix = "parentId")
	private Condition<String> parentIdCondition;

    /** [全局枚举]所有者类型：0-平台-PLATFORM、1-集团-GROUP、2-商圈-BUSINESS_DISTRICT、3-商户-MERCHANT查询条件 */
	@JsonUnwrapped(prefix = "ownerType")
	private Condition<OwnerType> ownerTypeCondition;

    /** 节点图标CSS类名查询条件 */
	@JsonUnwrapped(prefix = "iconCls")
	private Condition<String> iconClsCondition;

    /** 排序号查询条件 */
	@JsonUnwrapped(prefix = "sortNo")
	private Condition<Integer> sortNoCondition;

    /** 请求地址查询条件 */
	@JsonUnwrapped(prefix = "requestAddress")
	private Condition<String> requestAddressCondition;

    /** 权限标识(菜单名的英文)查询条件 */
	@JsonUnwrapped(prefix = "permission")
	private Condition<String> permissionCondition;

    /** [枚举]展开状态：0-收缩-SHRINKAGE、1-展开-UNFOLD查询条件 */
	@JsonUnwrapped(prefix = "expandStatus")
	private Condition<MenuExpandStatus> expandStatusCondition;

    /** 备注查询条件 */
	@JsonUnwrapped(prefix = "remark")
	private Condition<String> remarkCondition;

    /** [枚举]状态：1-已启用-ENABLED、2-禁用-DISABLED查询条件 */
	@JsonUnwrapped(prefix = "status")
	private Condition<MenuStatus> statusCondition;

    /** [枚举]标志(APP和小程序只有按钮和营销两种类型)：0-顶部节点-TOP、1-父节点-PARENTNODE、2-叶节点-LEAFNODE、3-按钮-BUTTON、4-营销-MARKING查询条件 */
	@JsonUnwrapped(prefix = "mark")
	private Condition<MenuMark> markCondition;

    /** 顶部菜单id  用于一次查询所有顶部id下包含的菜单查询条件 */
	@JsonUnwrapped(prefix = "topMenuId")
	private Condition<String> topMenuIdCondition;

    /** 查询条件 */
	@JsonUnwrapped(prefix = "createdTime")
	private Condition<LocalDateTime> createdTimeCondition;

    /** 查询条件 */
	@JsonUnwrapped(prefix = "createdBy")
	private Condition<String> createdByCondition;

    /** 查询条件 */
	@JsonUnwrapped(prefix = "modifiedTime")
	private Condition<LocalDateTime> modifiedTimeCondition;

    /** 查询条件 */
	@JsonUnwrapped(prefix = "modifiedBy")
	private Condition<String> modifiedByCondition;

    /** 逻辑删除，1表示已删除,0表示未删除查询条件 */
	@JsonUnwrapped(prefix = "del")
	private Condition<Boolean> delCondition;

    /** 查询条件 */
	@JsonUnwrapped(prefix = "delBy")
	private Condition<String> delByCondition;

    /** 查询条件 */
	@JsonUnwrapped(prefix = "delTime")
	private Condition<LocalDateTime> delTimeCondition;

    /** [全局枚举]应用：0-大运营后台-YSQ_PLATFORM、1-集团版后台-YSQ_GROUP、2-悦商圈APP安卓版-YSQ_APP_ANDROID、3-悦商圈APPIOS版-YSQ_APP_IOS、4-悦商惠小程序-YSQ_MERCHANT_XCX、5-悦购小程序-YSQ_XCX、6-悦荷包小程序-YSQ_WALLET_XCX、7-悦商管小程序-YSQ_GROUP_XCX、7-悦商圈员工版小程序-YSQ_GROUP_EMPLOYEE_XCX查询条件 */
	@JsonUnwrapped(prefix = "application")
	private Condition<YsqAppType> applicationCondition;

    /** 绑定在菜单上的系统内置角色查询条件 */
	@JsonUnwrapped(prefix = "roles")
	private Condition<String> rolesCondition;

	/**
	 * 构造一个查询条件对象
	 */
	public MenuQuery() {
		super();
	}

	/**
	 * 依据实体对象构造一个查询条件对象
	 * 
	 * @param entity 实体对象
	 */
	public MenuQuery(MenuEntity entity) {
		super(entity);
	}

	/**
	 * 依据其它查询条件对象的信息构造一个查询条件对象
	 * 
	 * @param other 查询条件对象
	 */
	public MenuQuery(MenuQuery other) {
		super(other);
		if (other.idCondition != null) {
			this.idCondition = other.idCondition.copy();
		}
		if (other.nameCondition != null) {
			this.nameCondition = other.nameCondition.copy();
		}
		if (other.parentIdCondition != null) {
			this.parentIdCondition = other.parentIdCondition.copy();
		}
		if (other.ownerTypeCondition != null) {
			this.ownerTypeCondition = other.ownerTypeCondition.copy();
		}
		if (other.iconClsCondition != null) {
			this.iconClsCondition = other.iconClsCondition.copy();
		}
		if (other.sortNoCondition != null) {
			this.sortNoCondition = other.sortNoCondition.copy();
		}
		if (other.requestAddressCondition != null) {
			this.requestAddressCondition = other.requestAddressCondition.copy();
		}
		if (other.permissionCondition != null) {
			this.permissionCondition = other.permissionCondition.copy();
		}
		if (other.expandStatusCondition != null) {
			this.expandStatusCondition = other.expandStatusCondition.copy();
		}
		if (other.remarkCondition != null) {
			this.remarkCondition = other.remarkCondition.copy();
		}
		if (other.statusCondition != null) {
			this.statusCondition = other.statusCondition.copy();
		}
		if (other.markCondition != null) {
			this.markCondition = other.markCondition.copy();
		}
		this.setOther(other);
	}

	private void setOther(MenuQuery other){
		if(other.topMenuIdCondition != null) {
			this.topMenuIdCondition = other.topMenuIdCondition.copy();
		}
		if(other.createdTimeCondition != null) {
			this.createdTimeCondition = other.createdTimeCondition.copy();
		}
		if(other.createdByCondition != null) {
			this.createdByCondition = other.createdByCondition.copy();
		}
		if(other.modifiedTimeCondition != null) {
			this.modifiedTimeCondition = other.modifiedTimeCondition.copy();
		}
		if(other.modifiedByCondition != null) {
			this.modifiedByCondition = other.modifiedByCondition.copy();
		}
		if(other.delCondition != null) {
			this.delCondition = other.delCondition.copy();
		}
		if(other.delByCondition != null) {
			this.delByCondition = other.delByCondition.copy();
		}
		if(other.delTimeCondition != null) {
			this.delTimeCondition = other.delTimeCondition.copy();
		}
		if(other.applicationCondition != null) {
			this.applicationCondition = other.applicationCondition.copy();
		}
		if(other.rolesCondition != null) {
			this.rolesCondition = other.rolesCondition.copy();
		}
	}

	@Override
	public QueryWrapper<MenuEntity> toQueryWrapper() {
		QueryWrapper<MenuEntity> wrapper = new QueryWrapper<>(this);
		if (idCondition != null) {
			idCondition.toWrapper(wrapper, COL_ID);
		}
		if (nameCondition != null) {
			nameCondition.toWrapper(wrapper, COL_NAME);
		}
		if (parentIdCondition != null) {
			parentIdCondition.toWrapper(wrapper, COL_PARENT_ID);
		}
		if (ownerTypeCondition != null) {
			ownerTypeCondition.toWrapper(wrapper, COL_OWNER_TYPE);
		}
		if (iconClsCondition != null) {
			iconClsCondition.toWrapper(wrapper, COL_ICON_CLS);
		}
		if (sortNoCondition != null) {
			sortNoCondition.toWrapper(wrapper, COL_SORT_NO);
		}
		if (requestAddressCondition != null) {
			requestAddressCondition.toWrapper(wrapper, COL_REQUEST_ADDRESS);
		}
		if (permissionCondition != null) {
			permissionCondition.toWrapper(wrapper, COL_PERMISSION);
		}
		if (expandStatusCondition != null) {
			expandStatusCondition.toWrapper(wrapper, COL_EXPAND_STATUS);
		}
		if (remarkCondition != null) {
			remarkCondition.toWrapper(wrapper, COL_REMARK);
		}
		if (statusCondition != null) {
			statusCondition.toWrapper(wrapper, COL_STATUS);
		}
		if (markCondition != null) {
			markCondition.toWrapper(wrapper, COL_MARK);
		}
		return getQueryWrapper(wrapper);
	}

	private QueryWrapper<MenuEntity> getQueryWrapper(QueryWrapper<MenuEntity> wrapper){

		if (topMenuIdCondition != null) {
			topMenuIdCondition.toWrapper(wrapper, COL_TOP_MENU_ID);
		}
		if (createdTimeCondition != null) {
			createdTimeCondition.toWrapper(wrapper, COL_CREATED_TIME);
		}
		if (createdByCondition != null) {
			createdByCondition.toWrapper(wrapper, COL_CREATED_BY);
		}
		if (modifiedTimeCondition != null) {
			modifiedTimeCondition.toWrapper(wrapper, COL_MODIFIED_TIME);
		}
		if (modifiedByCondition != null) {
			modifiedByCondition.toWrapper(wrapper, COL_MODIFIED_BY);
		}
		if (delCondition != null) {
			delCondition.toWrapper(wrapper, COL_DEL);
		}
		if (delByCondition != null) {
			delByCondition.toWrapper(wrapper, COL_DEL_BY);
		}
		if (delTimeCondition != null) {
			delTimeCondition.toWrapper(wrapper, COL_DEL_TIME);
		}
		if (applicationCondition != null) {
			applicationCondition.toWrapper(wrapper, COL_APPLICATION);
		}
		if (rolesCondition != null) {
			rolesCondition.toWrapper(wrapper, COL_ROLES);
		}
		return wrapper;
	}

	/**
	 * 构造并返回编号查询条件
	 * 
	 * @return idCondition 编号查询条件
	 */
	public Condition<String> id() {
		this.idCondition = new Condition<>();
		return this.idCondition;
	}
	
	/**
	 * 获取编号查询条件
	 * 
	 * @return idCondition 编号查询条件
	 */
	public Condition<String> getIdCondition() {
		return idCondition;
	}

	/**
	 * 设置编号查询条件
	 * 
	 * @param idCondition 编号查询条件
	 */
	public void setIdCondition(Condition<String> idCondition) {
		this.idCondition = idCondition;
	}

	/**
	 * 构造并返回菜单名称查询条件
	 * 
	 * @return nameCondition 菜单名称查询条件
	 */
	public Condition<String> name() {
		this.nameCondition = new Condition<>();
		return this.nameCondition;
	}
	
	/**
	 * 获取菜单名称查询条件
	 * 
	 * @return nameCondition 菜单名称查询条件
	 */
	public Condition<String> getNameCondition() {
		return nameCondition;
	}

	/**
	 * 设置菜单名称查询条件
	 * 
	 * @param nameCondition 菜单名称查询条件
	 */
	public void setNameCondition(Condition<String> nameCondition) {
		this.nameCondition = nameCondition;
	}

	/**
	 * 构造并返回上级菜单编号查询条件
	 * 
	 * @return parentIdCondition 上级菜单编号查询条件
	 */
	public Condition<String> parentId() {
		this.parentIdCondition = new Condition<>();
		return this.parentIdCondition;
	}
	
	/**
	 * 获取上级菜单编号查询条件
	 * 
	 * @return parentIdCondition 上级菜单编号查询条件
	 */
	public Condition<String> getParentIdCondition() {
		return parentIdCondition;
	}

	/**
	 * 设置上级菜单编号查询条件
	 * 
	 * @param parentIdCondition 上级菜单编号查询条件
	 */
	public void setParentIdCondition(Condition<String> parentIdCondition) {
		this.parentIdCondition = parentIdCondition;
	}

	/**
	 * 构造并返回[全局枚举]所有者类型：0-平台-PLATFORM、1-集团-GROUP、2-商圈-BUSINESS_DISTRICT、3-商户-MERCHANT查询条件
	 * 
	 * @return ownerTypeCondition [全局枚举]所有者类型：0-平台-PLATFORM、1-集团-GROUP、2-商圈-BUSINESS_DISTRICT、3-商户-MERCHANT查询条件
	 */
	public Condition<OwnerType> ownerType() {
		this.ownerTypeCondition = new Condition<>();
		return this.ownerTypeCondition;
	}
	
	/**
	 * 获取[全局枚举]所有者类型：0-平台-PLATFORM、1-集团-GROUP、2-商圈-BUSINESS_DISTRICT、3-商户-MERCHANT查询条件
	 * 
	 * @return ownerTypeCondition [全局枚举]所有者类型：0-平台-PLATFORM、1-集团-GROUP、2-商圈-BUSINESS_DISTRICT、3-商户-MERCHANT查询条件
	 */
	public Condition<OwnerType> getOwnerTypeCondition() {
		return ownerTypeCondition;
	}

	/**
	 * 设置[全局枚举]所有者类型：0-平台-PLATFORM、1-集团-GROUP、2-商圈-BUSINESS_DISTRICT、3-商户-MERCHANT查询条件
	 * 
	 * @param ownerTypeCondition [全局枚举]所有者类型：0-平台-PLATFORM、1-集团-GROUP、2-商圈-BUSINESS_DISTRICT、3-商户-MERCHANT查询条件
	 */
	public void setOwnerTypeCondition(Condition<OwnerType> ownerTypeCondition) {
		this.ownerTypeCondition = ownerTypeCondition;
	}

	/**
	 * 构造并返回节点图标CSS类名查询条件
	 * 
	 * @return iconClsCondition 节点图标CSS类名查询条件
	 */
	public Condition<String> iconCls() {
		this.iconClsCondition = new Condition<>();
		return this.iconClsCondition;
	}
	
	/**
	 * 获取节点图标CSS类名查询条件
	 * 
	 * @return iconClsCondition 节点图标CSS类名查询条件
	 */
	public Condition<String> getIconClsCondition() {
		return iconClsCondition;
	}

	/**
	 * 设置节点图标CSS类名查询条件
	 * 
	 * @param iconClsCondition 节点图标CSS类名查询条件
	 */
	public void setIconClsCondition(Condition<String> iconClsCondition) {
		this.iconClsCondition = iconClsCondition;
	}

	/**
	 * 构造并返回排序号查询条件
	 * 
	 * @return sortNoCondition 排序号查询条件
	 */
	public Condition<Integer> sortNo() {
		this.sortNoCondition = new Condition<>();
		return this.sortNoCondition;
	}
	
	/**
	 * 获取排序号查询条件
	 * 
	 * @return sortNoCondition 排序号查询条件
	 */
	public Condition<Integer> getSortNoCondition() {
		return sortNoCondition;
	}

	/**
	 * 设置排序号查询条件
	 * 
	 * @param sortNoCondition 排序号查询条件
	 */
	public void setSortNoCondition(Condition<Integer> sortNoCondition) {
		this.sortNoCondition = sortNoCondition;
	}

	/**
	 * 构造并返回请求地址查询条件
	 * 
	 * @return requestAddressCondition 请求地址查询条件
	 */
	public Condition<String> requestAddress() {
		this.requestAddressCondition = new Condition<>();
		return this.requestAddressCondition;
	}
	
	/**
	 * 获取请求地址查询条件
	 * 
	 * @return requestAddressCondition 请求地址查询条件
	 */
	public Condition<String> getRequestAddressCondition() {
		return requestAddressCondition;
	}

	/**
	 * 设置请求地址查询条件
	 * 
	 * @param requestAddressCondition 请求地址查询条件
	 */
	public void setRequestAddressCondition(Condition<String> requestAddressCondition) {
		this.requestAddressCondition = requestAddressCondition;
	}

	/**
	 * 构造并返回权限标识(菜单名的英文)查询条件
	 * 
	 * @return permissionCondition 权限标识(菜单名的英文)查询条件
	 */
	public Condition<String> permission() {
		this.permissionCondition = new Condition<>();
		return this.permissionCondition;
	}
	
	/**
	 * 获取权限标识(菜单名的英文)查询条件
	 * 
	 * @return permissionCondition 权限标识(菜单名的英文)查询条件
	 */
	public Condition<String> getPermissionCondition() {
		return permissionCondition;
	}

	/**
	 * 设置权限标识(菜单名的英文)查询条件
	 * 
	 * @param permissionCondition 权限标识(菜单名的英文)查询条件
	 */
	public void setPermissionCondition(Condition<String> permissionCondition) {
		this.permissionCondition = permissionCondition;
	}

	/**
	 * 构造并返回[枚举]展开状态：0-收缩-SHRINKAGE、1-展开-UNFOLD查询条件
	 * 
	 * @return expandStatusCondition [枚举]展开状态：0-收缩-SHRINKAGE、1-展开-UNFOLD查询条件
	 */
	public Condition<MenuExpandStatus> expandStatus() {
		this.expandStatusCondition = new Condition<>();
		return this.expandStatusCondition;
	}
	
	/**
	 * 获取[枚举]展开状态：0-收缩-SHRINKAGE、1-展开-UNFOLD查询条件
	 * 
	 * @return expandStatusCondition [枚举]展开状态：0-收缩-SHRINKAGE、1-展开-UNFOLD查询条件
	 */
	public Condition<MenuExpandStatus> getExpandStatusCondition() {
		return expandStatusCondition;
	}

	/**
	 * 设置[枚举]展开状态：0-收缩-SHRINKAGE、1-展开-UNFOLD查询条件
	 * 
	 * @param expandStatusCondition [枚举]展开状态：0-收缩-SHRINKAGE、1-展开-UNFOLD查询条件
	 */
	public void setExpandStatusCondition(Condition<MenuExpandStatus> expandStatusCondition) {
		this.expandStatusCondition = expandStatusCondition;
	}

	/**
	 * 构造并返回备注查询条件
	 * 
	 * @return remarkCondition 备注查询条件
	 */
	public Condition<String> remark() {
		this.remarkCondition = new Condition<>();
		return this.remarkCondition;
	}
	
	/**
	 * 获取备注查询条件
	 * 
	 * @return remarkCondition 备注查询条件
	 */
	public Condition<String> getRemarkCondition() {
		return remarkCondition;
	}

	/**
	 * 设置备注查询条件
	 * 
	 * @param remarkCondition 备注查询条件
	 */
	public void setRemarkCondition(Condition<String> remarkCondition) {
		this.remarkCondition = remarkCondition;
	}

	/**
	 * 构造并返回[枚举]状态：1-已启用-ENABLED、2-禁用-DISABLED查询条件
	 * 
	 * @return statusCondition [枚举]状态：1-已启用-ENABLED、2-禁用-DISABLED查询条件
	 */
	public Condition<MenuStatus> status() {
		this.statusCondition = new Condition<>();
		return this.statusCondition;
	}
	
	/**
	 * 获取[枚举]状态：1-已启用-ENABLED、2-禁用-DISABLED查询条件
	 * 
	 * @return statusCondition [枚举]状态：1-已启用-ENABLED、2-禁用-DISABLED查询条件
	 */
	public Condition<MenuStatus> getStatusCondition() {
		return statusCondition;
	}

	/**
	 * 设置[枚举]状态：1-已启用-ENABLED、2-禁用-DISABLED查询条件
	 * 
	 * @param statusCondition [枚举]状态：1-已启用-ENABLED、2-禁用-DISABLED查询条件
	 */
	public void setStatusCondition(Condition<MenuStatus> statusCondition) {
		this.statusCondition = statusCondition;
	}

	/**
	 * 构造并返回[枚举]标志(APP和小程序只有按钮和营销两种类型)：0-顶部节点-TOP、1-父节点-PARENTNODE、2-叶节点-LEAFNODE、3-按钮-BUTTON、4-营销-MARKING查询条件
	 * 
	 * @return markCondition [枚举]标志(APP和小程序只有按钮和营销两种类型)：0-顶部节点-TOP、1-父节点-PARENTNODE、2-叶节点-LEAFNODE、3-按钮-BUTTON、4-营销-MARKING查询条件
	 */
	public Condition<MenuMark> mark() {
		this.markCondition = new Condition<>();
		return this.markCondition;
	}
	
	/**
	 * 获取[枚举]标志(APP和小程序只有按钮和营销两种类型)：0-顶部节点-TOP、1-父节点-PARENTNODE、2-叶节点-LEAFNODE、3-按钮-BUTTON、4-营销-MARKING查询条件
	 * 
	 * @return markCondition [枚举]标志(APP和小程序只有按钮和营销两种类型)：0-顶部节点-TOP、1-父节点-PARENTNODE、2-叶节点-LEAFNODE、3-按钮-BUTTON、4-营销-MARKING查询条件
	 */
	public Condition<MenuMark> getMarkCondition() {
		return markCondition;
	}

	/**
	 * 设置[枚举]标志(APP和小程序只有按钮和营销两种类型)：0-顶部节点-TOP、1-父节点-PARENTNODE、2-叶节点-LEAFNODE、3-按钮-BUTTON、4-营销-MARKING查询条件
	 * 
	 * @param markCondition [枚举]标志(APP和小程序只有按钮和营销两种类型)：0-顶部节点-TOP、1-父节点-PARENTNODE、2-叶节点-LEAFNODE、3-按钮-BUTTON、4-营销-MARKING查询条件
	 */
	public void setMarkCondition(Condition<MenuMark> markCondition) {
		this.markCondition = markCondition;
	}

	/**
	 * 构造并返回顶部菜单id  用于一次查询所有顶部id下包含的菜单查询条件
	 * 
	 * @return topMenuIdCondition 顶部菜单id  用于一次查询所有顶部id下包含的菜单查询条件
	 */
	public Condition<String> topMenuId() {
		this.topMenuIdCondition = new Condition<>();
		return this.topMenuIdCondition;
	}
	
	/**
	 * 获取顶部菜单id  用于一次查询所有顶部id下包含的菜单查询条件
	 * 
	 * @return topMenuIdCondition 顶部菜单id  用于一次查询所有顶部id下包含的菜单查询条件
	 */
	public Condition<String> getTopMenuIdCondition() {
		return topMenuIdCondition;
	}

	/**
	 * 设置顶部菜单id  用于一次查询所有顶部id下包含的菜单查询条件
	 * 
	 * @param topMenuIdCondition 顶部菜单id  用于一次查询所有顶部id下包含的菜单查询条件
	 */
	public void setTopMenuIdCondition(Condition<String> topMenuIdCondition) {
		this.topMenuIdCondition = topMenuIdCondition;
	}

	/**
	 * 构造并返回查询条件
	 * 
	 * @return createdTimeCondition 查询条件
	 */
	public Condition<LocalDateTime> createdTime() {
		this.createdTimeCondition = new Condition<>();
		return this.createdTimeCondition;
	}
	
	/**
	 * 获取查询条件
	 * 
	 * @return createdTimeCondition 查询条件
	 */
	public Condition<LocalDateTime> getCreatedTimeCondition() {
		return createdTimeCondition;
	}

	/**
	 * 设置查询条件
	 * 
	 * @param createdTimeCondition 查询条件
	 */
	public void setCreatedTimeCondition(Condition<LocalDateTime> createdTimeCondition) {
		this.createdTimeCondition = createdTimeCondition;
	}

	/**
	 * 构造并返回查询条件
	 * 
	 * @return createdByCondition 查询条件
	 */
	public Condition<String> createdBy() {
		this.createdByCondition = new Condition<>();
		return this.createdByCondition;
	}
	
	/**
	 * 获取查询条件
	 * 
	 * @return createdByCondition 查询条件
	 */
	public Condition<String> getCreatedByCondition() {
		return createdByCondition;
	}

	/**
	 * 设置查询条件
	 * 
	 * @param createdByCondition 查询条件
	 */
	public void setCreatedByCondition(Condition<String> createdByCondition) {
		this.createdByCondition = createdByCondition;
	}

	/**
	 * 构造并返回查询条件
	 * 
	 * @return modifiedTimeCondition 查询条件
	 */
	public Condition<LocalDateTime> modifiedTime() {
		this.modifiedTimeCondition = new Condition<>();
		return this.modifiedTimeCondition;
	}
	
	/**
	 * 获取查询条件
	 * 
	 * @return modifiedTimeCondition 查询条件
	 */
	public Condition<LocalDateTime> getModifiedTimeCondition() {
		return modifiedTimeCondition;
	}

	/**
	 * 设置查询条件
	 * 
	 * @param modifiedTimeCondition 查询条件
	 */
	public void setModifiedTimeCondition(Condition<LocalDateTime> modifiedTimeCondition) {
		this.modifiedTimeCondition = modifiedTimeCondition;
	}

	/**
	 * 构造并返回查询条件
	 * 
	 * @return modifiedByCondition 查询条件
	 */
	public Condition<String> modifiedBy() {
		this.modifiedByCondition = new Condition<>();
		return this.modifiedByCondition;
	}
	
	/**
	 * 获取查询条件
	 * 
	 * @return modifiedByCondition 查询条件
	 */
	public Condition<String> getModifiedByCondition() {
		return modifiedByCondition;
	}

	/**
	 * 设置查询条件
	 * 
	 * @param modifiedByCondition 查询条件
	 */
	public void setModifiedByCondition(Condition<String> modifiedByCondition) {
		this.modifiedByCondition = modifiedByCondition;
	}

	/**
	 * 构造并返回逻辑删除，1表示已删除,0表示未删除查询条件
	 * 
	 * @return delCondition 逻辑删除，1表示已删除,0表示未删除查询条件
	 */
	public Condition<Boolean> del() {
		this.delCondition = new Condition<>();
		return this.delCondition;
	}
	
	/**
	 * 获取逻辑删除，1表示已删除,0表示未删除查询条件
	 * 
	 * @return delCondition 逻辑删除，1表示已删除,0表示未删除查询条件
	 */
	public Condition<Boolean> getDelCondition() {
		return delCondition;
	}

	/**
	 * 设置逻辑删除，1表示已删除,0表示未删除查询条件
	 * 
	 * @param delCondition 逻辑删除，1表示已删除,0表示未删除查询条件
	 */
	public void setDelCondition(Condition<Boolean> delCondition) {
		this.delCondition = delCondition;
	}

	/**
	 * 构造并返回查询条件
	 * 
	 * @return delByCondition 查询条件
	 */
	public Condition<String> delBy() {
		this.delByCondition = new Condition<>();
		return this.delByCondition;
	}
	
	/**
	 * 获取查询条件
	 * 
	 * @return delByCondition 查询条件
	 */
	public Condition<String> getDelByCondition() {
		return delByCondition;
	}

	/**
	 * 设置查询条件
	 * 
	 * @param delByCondition 查询条件
	 */
	public void setDelByCondition(Condition<String> delByCondition) {
		this.delByCondition = delByCondition;
	}

	/**
	 * 构造并返回查询条件
	 * 
	 * @return delTimeCondition 查询条件
	 */
	public Condition<LocalDateTime> delTime() {
		this.delTimeCondition = new Condition<>();
		return this.delTimeCondition;
	}
	
	/**
	 * 获取查询条件
	 * 
	 * @return delTimeCondition 查询条件
	 */
	public Condition<LocalDateTime> getDelTimeCondition() {
		return delTimeCondition;
	}

	/**
	 * 设置查询条件
	 * 
	 * @param delTimeCondition 查询条件
	 */
	public void setDelTimeCondition(Condition<LocalDateTime> delTimeCondition) {
		this.delTimeCondition = delTimeCondition;
	}

	/**
	 * 构造并返回[全局枚举]应用：0-大运营后台-YSQ_PLATFORM、1-集团版后台-YSQ_GROUP、2-悦商圈APP安卓版-YSQ_APP_ANDROID、3-悦商圈APPIOS版-YSQ_APP_IOS、4-悦商惠小程序-YSQ_MERCHANT_XCX、5-悦购小程序-YSQ_XCX、6-悦荷包小程序-YSQ_WALLET_XCX、7-悦商管小程序-YSQ_GROUP_XCX、7-悦商圈员工版小程序-YSQ_GROUP_EMPLOYEE_XCX查询条件
	 * 
	 * @return applicationCondition [全局枚举]应用：0-大运营后台-YSQ_PLATFORM、1-集团版后台-YSQ_GROUP、2-悦商圈APP安卓版-YSQ_APP_ANDROID、3-悦商圈APPIOS版-YSQ_APP_IOS、4-悦商惠小程序-YSQ_MERCHANT_XCX、5-悦购小程序-YSQ_XCX、6-悦荷包小程序-YSQ_WALLET_XCX、7-悦商管小程序-YSQ_GROUP_XCX、7-悦商圈员工版小程序-YSQ_GROUP_EMPLOYEE_XCX查询条件
	 */
	public Condition<YsqAppType> application() {
		this.applicationCondition = new Condition<>();
		return this.applicationCondition;
	}
	
	/**
	 * 获取[全局枚举]应用：0-大运营后台-YSQ_PLATFORM、1-集团版后台-YSQ_GROUP、2-悦商圈APP安卓版-YSQ_APP_ANDROID、3-悦商圈APPIOS版-YSQ_APP_IOS、4-悦商惠小程序-YSQ_MERCHANT_XCX、5-悦购小程序-YSQ_XCX、6-悦荷包小程序-YSQ_WALLET_XCX、7-悦商管小程序-YSQ_GROUP_XCX、7-悦商圈员工版小程序-YSQ_GROUP_EMPLOYEE_XCX查询条件
	 * 
	 * @return applicationCondition [全局枚举]应用：0-大运营后台-YSQ_PLATFORM、1-集团版后台-YSQ_GROUP、2-悦商圈APP安卓版-YSQ_APP_ANDROID、3-悦商圈APPIOS版-YSQ_APP_IOS、4-悦商惠小程序-YSQ_MERCHANT_XCX、5-悦购小程序-YSQ_XCX、6-悦荷包小程序-YSQ_WALLET_XCX、7-悦商管小程序-YSQ_GROUP_XCX、7-悦商圈员工版小程序-YSQ_GROUP_EMPLOYEE_XCX查询条件
	 */
	public Condition<YsqAppType> getApplicationCondition() {
		return applicationCondition;
	}

	/**
	 * 设置[全局枚举]应用：0-大运营后台-YSQ_PLATFORM、1-集团版后台-YSQ_GROUP、2-悦商圈APP安卓版-YSQ_APP_ANDROID、3-悦商圈APPIOS版-YSQ_APP_IOS、4-悦商惠小程序-YSQ_MERCHANT_XCX、5-悦购小程序-YSQ_XCX、6-悦荷包小程序-YSQ_WALLET_XCX、7-悦商管小程序-YSQ_GROUP_XCX、7-悦商圈员工版小程序-YSQ_GROUP_EMPLOYEE_XCX查询条件
	 * 
	 * @param applicationCondition [全局枚举]应用：0-大运营后台-YSQ_PLATFORM、1-集团版后台-YSQ_GROUP、2-悦商圈APP安卓版-YSQ_APP_ANDROID、3-悦商圈APPIOS版-YSQ_APP_IOS、4-悦商惠小程序-YSQ_MERCHANT_XCX、5-悦购小程序-YSQ_XCX、6-悦荷包小程序-YSQ_WALLET_XCX、7-悦商管小程序-YSQ_GROUP_XCX、7-悦商圈员工版小程序-YSQ_GROUP_EMPLOYEE_XCX查询条件
	 */
	public void setApplicationCondition(Condition<YsqAppType> applicationCondition) {
		this.applicationCondition = applicationCondition;
	}

	/**
	 * 构造并返回绑定在菜单上的系统内置角色查询条件
	 * 
	 * @return rolesCondition 绑定在菜单上的系统内置角色查询条件
	 */
	public Condition<String> roles() {
		this.rolesCondition = new Condition<>();
		return this.rolesCondition;
	}
	
	/**
	 * 获取绑定在菜单上的系统内置角色查询条件
	 * 
	 * @return rolesCondition 绑定在菜单上的系统内置角色查询条件
	 */
	public Condition<String> getRolesCondition() {
		return rolesCondition;
	}

	/**
	 * 设置绑定在菜单上的系统内置角色查询条件
	 * 
	 * @param rolesCondition 绑定在菜单上的系统内置角色查询条件
	 */
	public void setRolesCondition(Condition<String> rolesCondition) {
		this.rolesCondition = rolesCondition;
	}

}
